﻿using EmoneyWeiXinDAL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace EmoneyWeiXinBLL
{
    public class QQKeysNewBLL
    {
        public static DataTable checkLogin(string userName, string pwd)
        {
            DataTable dt = QQKeysNewDAL.checkLogin(userName, pwd);
            return dt;
        }

        public static int InsertQQKeyTypes(string QQKeyTypeName, string typePortNam, string createUser)
        {
            return QQKeysNewDAL.InsertQQKeyTypes(QQKeyTypeName, typePortNam, createUser);
        }

        public static DataTable GetAllTypes(string createUser)
        {
            return QQKeysNewDAL.GetAllTypes(createUser);
        }

        public static int DeleteType(string keyTypeId)
        {
            return QQKeysNewDAL.DeleteType(keyTypeId);
        }


        public static int InsertQQKeysNew(string name, string number, int typeid, string key,string createUser)
        {
            return QQKeysNewDAL.InsertQQKeysNew(name, number, typeid, key,createUser);
        }


        public static DataTable GetQQkeysByTypeId(string typeId, string name,string createUser)
        {
            return QQKeysNewDAL.GetQQkeysByTypeId(typeId, name,createUser);
        }

        public static int DeleteQQKey(string Id)
        {
            return QQKeysNewDAL.DeleteQQKey(Id);
        }


        public static int SetUsing(string qqKeyId, string typeId)
        {
            return QQKeysNewDAL.SetUsing(qqKeyId, typeId);
        }


        public static DataTable GetUsingQQkeys()
        {
            return QQKeysNewDAL.GetUsingQQkeys();
        }

        public static DataTable GetAllName(string createUser)
        {
            return QQKeysNewDAL.GetAllName( createUser);
        }
    }
}
